<?php $this->load->view('common/head');?>
<?php $this->load->view('common/navbar');?>
    <div>
    <div style="width: 450px;display: block;float: left;">
    <ul class="nav nav-tabs">
      <?php foreach ($storeProStatus as $k => $v) {?>
      <li role="presentation" <?=$status==$k?'class="active"':''?>>
        <a href="<?=printUrl('StorePro','index',array('status'=>$k))?>"><?=$v?></a>
      </li>
      <?php } ?>
    </ul>
    </div>
    <div style="width: 550px;display: block; text-align: right;float: right;">
    <form class="form-inline" method="GET" action="<?php echo $this->input->server('REQUEST_URI'); ?>" name="queryForm" id="queryForm">
    <input type="hidden" name="c" id="c" value="<?php echo $this->input->get('c') ?>">
    <input type="hidden" name="m" id="m" value="<?php echo $this->input->get('m') ?>">
    <input type="hidden" name="status" id="status" value="<?=$status?>">
       <div class="form-group form-group-sm">
        <label for="year">所属年份：</label>
        <select class="form-control" id="year" name="year">
          <option value="">请选择</option>
        </select>
      </div>
      <div class="form-group form-group-sm">
        <label for="timeUnit">所属双月：</label>
        <select class="form-control" id="timeUnit" name="timeUnit">
          <option value="">请选择</option>
      </select>
      </div>
     <div class="form-group form-group-sm">
      <button type="submit" class="btn btn-default btn-sm">查询</button>
      </div>
      </form>
      </div>
    </div>
    <div class="tab-content" style="padding-top: 10px;">
    
      <div class="tab-pane active" id="panel-<?=$k?>" style="padding-top: 10px;">
        <?php $this->load->view('StorePro/indexList'.$status); ?>
      </div>
    </div>
<script type="text/javascript">
  $(function(){
    loadYearList('year',<?=$year ? $year : 0?>);
    loadTimeUnitList('timeUnit',<?=$year ? $year : 0?>,<?=$timeUnit ? $timeUnit : 0?>);
    $('#myTabs a[href="#panel-<?=$status?>"]').tab('show');
  });
  $("#year").change(function(){
    loadTimeUnitList('timeUnit',this.value);
  });
</script>
<?php $this->load->view('common/foot');?>